import java.net.*;
import java.io.*;

/* *********Server********* */
public class Server {

    public static void main(String[] args) {

        try{
            ServerSocket sock = new ServerSocket(6017);
            while(true) {
                Socket client = sock.accept();
                PrintWriter pout = new PrintWriter(client.getOutputStream(), true);
                /* write Date */
                for(int i = 0; i < 5; ++ i) {
                    pout.println("quote of day ????");
                }
                client.close();
            }
        }catch (IOException ioe) {
            System.err.println(ioe);
        }
    }
}
